Skip to content

Conversation

@NeatGuyCoding
Copy link
Contributor

the non-pattern package prefix check uses packageName.startsWith(basePackage) which incorrectly treats "com.example2.foo" as a subpackage of "com.example"

…ith(basePackage) which incorrectly treats "com.example2.foo" as a subpackage of "com.example"

Signed-off-by: NeatGuyCoding <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 11, 2025
@bclozel bclozel added the in: core Issues in core modules (aop, beans, core, context, expression) label Oct 11, 2025
@sbrannen sbrannen self-assigned this Oct 11, 2025
@sbrannen sbrannen changed the title bugfix: fix the non-pattern package prefix check Fix non-pattern package prefix check in CandidateComponentsIndex Oct 11, 2025
@sbrannen sbrannen added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 11, 2025
@sbrannen sbrannen added this to the 7.0.0-RC1 milestone Oct 11, 2025
@sbrannen
Copy link
Member

Since this is a follow-up to #35497 (which has not yet been released), I've labeled this as as task instead of bug.

@sbrannen sbrannen closed this in 113b9d1 Oct 11, 2025
sbrannen added a commit that referenced this pull request Oct 11, 2025
This indirectly tests the implementation of matchPackage(), which was
fixed in the previous commit.

See gh-35497
See gh-35601
@sbrannen
Copy link
Member

This has been merged into main in 113b9d1, and I added missing tests in b727dbb.

Thanks

@NeatGuyCoding NeatGuyCoding deleted the fix-package-check branch October 12, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants